<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加影像检查</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="../static/css/base.css">

</head>

<body>
    <div id="app">


        <div class="row" align="center">
            <div class="col-xs-12 nav_container" >
                <div class="col-xs-1" @click="back"><img src="../static/img/back_black.png" style="width: 2.5rem;width: 2.5rem;margin-top: 0.8rem;margin-left: -0.5rem"></div>
                <div class="col-xs-9">
                    <div style="color: black;height:2.5rem;margin-top: 1rem;text-align: center;padding-top: 0rem;font-size: 2rem">添加影像检查</div>
                </div>
            </div>
        </div>
        <div class="divline_small"></div>
        <div  style="margin-top: 12rem;font-size: 3rem;text-align: center">

            <div class="row" style="margin-top: 9rem">
                <button @click="searchByAccessionNumber"  :class="type == 1 ? 'round_choose' : 'round' " style="width: 30%;font-size: 1.5rem;">检查号</button>
                <button @click="searchByPatientId" :class="type == 2 ? 'round_choose' : 'round' " style="width: 30%;font-size: 1.5rem;margin-left: -0.5rem">病历号</button>
            </div>
            <div style="margin-top: 0.5rem" >
                <div class="input-group " style="margin-left: 10%;width: 80%;margin-top: 1rem" v-if="type == 1">
                    <span class="input-group-addon input_primary" >检查号:</span>
                    <input type="text" class="form-control" placeholder="请输入检查号" v-model="examNo">
                </div>
                <div class="input-group" style="margin-left: 10%;width: 80%;margin-top: 1rem" v-if="type == 2">
                    <span class="input-group-addon input_primary" >病历号:</span>
                    <input type="text" class="form-control" placeholder="请输入病历号" v-model="patientId">
                </div>
                <div class="input-group" style="margin-left: 10%;width: 80%;margin-top: 1rem">
                    <span class="input-group-addon input_primary" >姓名:</span>
                    <input type="text" class="form-control" placeholder="请输入姓名" v-model="patientName">
                </div>
            </div>

        </div>
        <div align="right" width="100%" style="width: 100%;padding-right: 10%">
            <button @click="search" class="round_choose" style="margin-top: 1rem;font-size: 1.7rem;padding-right: 2rem;padding-left: 2rem">增加</button>
        </div>
    </div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js "></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js " integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa " crossorigin="anonymous "></script>
<script src="../static/js/base/vue.min.js"></script>
<script src="../static/js/base/util.js"></script>
<script src="../static/js/base/url.js"></script>
<script src="../static/js/base/base_net.js"></script>
<script src="../static/js/base/net.js"></script>
<script src="../static/js/search.js"></script>

</body>
<style scoped>
    .input_primary{
        width: 6rem;
        text-align:right;
        background: #337ab7;
        color: white
    }
    .placeholder {
        margin-left: 0px;
        margin-right:0px;
        margin-top: 30px;
    }
    .btn_container {
        margin-top: 30px;
        text-align: right;
    }
    .body {
        background: white;
    }
    .round {
        background: white;
        border: 1px solid grey;
        -moz-border-radius: 5px;
        /* Gecko browsers */
        -webkit-border-radius: 5px;
        /* Webkit browsers */
        border-radius:5px;
        color:#337ab7;
        /* W3C syntax */}
    .round_choose{
        color:white;
        background: #337ab7;
        border: 1px solid #337ab7;
        -moz-border-radius: 5px;
        /* Gecko browsers */
        -webkit-border-radius: 5px;
        /* Webkit browsers */
        border-radius:5px;
        /* W3C syntax */}
</style>
</html>